package com.markerhub.controller;


import com.markerhub.common.lang.Result;
import com.markerhub.entity.User;
import com.markerhub.service.UserService;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @author 关注公众号：MarkerHub
 * @since 2020-05-25
 */
@RestController
@RequestMapping("/TEST")
public class TestController {

    @GetMapping("/test1")
    public String index() {
        return "未认证也是可以访问的~~";
    }

    @RequiresAuthentication
    @GetMapping("/test2")
    public String test2() {
        return "test...";
    }

}
